<?php

/**
* SendFileTest.php
*
* Guid add test
*
* @author     Blazej Zieba <b@zieba.info>
* @copyright  2007 konekto.com
* @version    CVS: $Id:$
*/
require_once '../framework/config.php';

require_once 'simpletest/autorun.php';

require_once '../MimeType.class.php';


class  MimeTest extends UnitTestCase
{

    var $mimeType = null ;

    public function setUp() 
    {
        $this->mimeType = new MimeType();
    }

    public function testAmr()
    {
        $this->assertPattern( "/audio\/amr/" ,$this->mimeType->get("amr.amr") ) ;
    }

    public function testJpg()
    {
        $this->assertPattern( "/image\/jpeg/", $this->mimeType->get("jpg.jpg") ) ;
        $this->assertPattern( "/image\/jpeg/", $this->mimeType->get("jpg.jpeg") ) ;
    }

    public function testWav()
    {
        $this->assertPattern( "/audio\/x-wav/", $this->mimeType->get("wav.wav") ) ;
    }

    public function testMp4()
    {
        $this->assertPattern( "/video\/mp4/", $this->mimeType->get("mp4.mp4") ) ;
    }

    public function test3gpp()
    {
        $this->assertPattern( "/video\/3gpp/", $this->mimeType->get("3gpp.3gpp") ) ;
    }

    public function tearDown() 
    {
        $sendFile = null;
    }
 

}
?>
